//
//  CouponCell.m
//  ez.Coupon
//
//  Created by Mobility Lab on 1/3/14.
//  Copyright (c) 2014 iOS Team. All rights reserved.
//

#import "CouponCell.h"
#import "Coupon.h"

@implementation CouponCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void) setData: (Coupon*) coupon
{
    _CouponCellName.text = coupon.CouponName;
    _CouponCellImage.image = coupon.CouponImage;
    _CouponCellDescription.text = coupon.CouponDescription;
    _CouponCellSalePrice.text = coupon.CouponSalePrice;
    _CouponCellDiscount.text = @"-10%";
    //_CouponCellExpriedDate.text = coupon.CouponExpiredDate;
    //_CouponCellLove`coupon.CouponAppliedDate;
    
}
@end
